package com.dudu.utils;

import com.google.gson.Gson;
import lombok.Data;

@Data
public class SendMessage {
    private String status;
    private Object data;

    public SendMessage(String messageType, Object data) {
        this.status = messageType;
        this.data = data;
    }

    public SendMessage(String messageType) {
        this.status =messageType;
    }
    public String toJson() {
        return new Gson().toJson(this);
    }

}
